package javaapplication1.view;

import java.util.List;

import javaapplication1.model.PetStore;
import javaapplication1.dao.PetStoreDao;
import javaapplication1.dao.oracleImpl.PetStoreDaoOracleImpl;

public class ShowPetStoreView {

	private static PetStoreDao petStoreDao = new PetStoreDaoOracleImpl();

	public static void showPetStore() {
		List<PetStore> petStoreList = petStoreDao.retrievePetStoreAll();
		System.out.println("******************************");
		System.out.println("宠物商店列表");
		for (int i = 0; i < petStoreList.size(); i++) {
			System.out.println("第" + (i + 1) + "个宠物商店，名字叫："
					+ petStoreList.get(i).getName());
		}
		System.out.println("******************************");
	}

}